package com.knowledge.plus.java8.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 测试数据
 *
 * @author TPF
 * @since 2022/11/18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Java8Message {
    private Integer id;    //id

    private String msg; //消息

    private Date sendTime;  //时间戳

    public static List<Java8Message> getMessageList() {
        List<Java8Message> list = new ArrayList<>();
        list.add(new Java8Message(1, "aaa", new Date()));
        list.add(new Java8Message(2, "bbb", new Date()));
        list.add(new Java8Message(4, "bbb", new Date()));
        list.add(new Java8Message(3, "ccc", new Date()));
        return list;
    }

}
